package com.example.demo.main;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@Component
public class GoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Long value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Long value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Long value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Long value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Long value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Long value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Long> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Long> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Long value1, Long value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Long value1, Long value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNull() {
            addCriterion("store_id is null");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNotNull() {
            addCriterion("store_id is not null");
            return (Criteria) this;
        }

        public Criteria andStoreIdEqualTo(Long value) {
            addCriterion("store_id =", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotEqualTo(Long value) {
            addCriterion("store_id <>", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThan(Long value) {
            addCriterion("store_id >", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThanOrEqualTo(Long value) {
            addCriterion("store_id >=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThan(Long value) {
            addCriterion("store_id <", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThanOrEqualTo(Long value) {
            addCriterion("store_id <=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIn(List<Long> values) {
            addCriterion("store_id in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotIn(List<Long> values) {
            addCriterion("store_id not in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdBetween(Long value1, Long value2) {
            addCriterion("store_id between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotBetween(Long value1, Long value2) {
            addCriterion("store_id not between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goods_name =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goods_name <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goods_name like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goods_name not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goods_name in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1IsNull() {
            addCriterion("goods_picture1 is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1IsNotNull() {
            addCriterion("goods_picture1 is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1EqualTo(String value) {
            addCriterion("goods_picture1 =", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1NotEqualTo(String value) {
            addCriterion("goods_picture1 <>", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1GreaterThan(String value) {
            addCriterion("goods_picture1 >", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1GreaterThanOrEqualTo(String value) {
            addCriterion("goods_picture1 >=", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1LessThan(String value) {
            addCriterion("goods_picture1 <", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1LessThanOrEqualTo(String value) {
            addCriterion("goods_picture1 <=", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1Like(String value) {
            addCriterion("goods_picture1 like", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1NotLike(String value) {
            addCriterion("goods_picture1 not like", value, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1In(List<String> values) {
            addCriterion("goods_picture1 in", values, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1NotIn(List<String> values) {
            addCriterion("goods_picture1 not in", values, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1Between(String value1, String value2) {
            addCriterion("goods_picture1 between", value1, value2, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture1NotBetween(String value1, String value2) {
            addCriterion("goods_picture1 not between", value1, value2, "goodsPicture1");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2IsNull() {
            addCriterion("goods_picture2 is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2IsNotNull() {
            addCriterion("goods_picture2 is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2EqualTo(String value) {
            addCriterion("goods_picture2 =", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2NotEqualTo(String value) {
            addCriterion("goods_picture2 <>", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2GreaterThan(String value) {
            addCriterion("goods_picture2 >", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2GreaterThanOrEqualTo(String value) {
            addCriterion("goods_picture2 >=", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2LessThan(String value) {
            addCriterion("goods_picture2 <", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2LessThanOrEqualTo(String value) {
            addCriterion("goods_picture2 <=", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2Like(String value) {
            addCriterion("goods_picture2 like", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2NotLike(String value) {
            addCriterion("goods_picture2 not like", value, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2In(List<String> values) {
            addCriterion("goods_picture2 in", values, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2NotIn(List<String> values) {
            addCriterion("goods_picture2 not in", values, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2Between(String value1, String value2) {
            addCriterion("goods_picture2 between", value1, value2, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture2NotBetween(String value1, String value2) {
            addCriterion("goods_picture2 not between", value1, value2, "goodsPicture2");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3IsNull() {
            addCriterion("goods_picture3 is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3IsNotNull() {
            addCriterion("goods_picture3 is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3EqualTo(String value) {
            addCriterion("goods_picture3 =", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3NotEqualTo(String value) {
            addCriterion("goods_picture3 <>", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3GreaterThan(String value) {
            addCriterion("goods_picture3 >", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3GreaterThanOrEqualTo(String value) {
            addCriterion("goods_picture3 >=", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3LessThan(String value) {
            addCriterion("goods_picture3 <", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3LessThanOrEqualTo(String value) {
            addCriterion("goods_picture3 <=", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3Like(String value) {
            addCriterion("goods_picture3 like", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3NotLike(String value) {
            addCriterion("goods_picture3 not like", value, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3In(List<String> values) {
            addCriterion("goods_picture3 in", values, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3NotIn(List<String> values) {
            addCriterion("goods_picture3 not in", values, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3Between(String value1, String value2) {
            addCriterion("goods_picture3 between", value1, value2, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture3NotBetween(String value1, String value2) {
            addCriterion("goods_picture3 not between", value1, value2, "goodsPicture3");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4IsNull() {
            addCriterion("goods_picture4 is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4IsNotNull() {
            addCriterion("goods_picture4 is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4EqualTo(String value) {
            addCriterion("goods_picture4 =", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4NotEqualTo(String value) {
            addCriterion("goods_picture4 <>", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4GreaterThan(String value) {
            addCriterion("goods_picture4 >", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4GreaterThanOrEqualTo(String value) {
            addCriterion("goods_picture4 >=", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4LessThan(String value) {
            addCriterion("goods_picture4 <", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4LessThanOrEqualTo(String value) {
            addCriterion("goods_picture4 <=", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4Like(String value) {
            addCriterion("goods_picture4 like", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4NotLike(String value) {
            addCriterion("goods_picture4 not like", value, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4In(List<String> values) {
            addCriterion("goods_picture4 in", values, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4NotIn(List<String> values) {
            addCriterion("goods_picture4 not in", values, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4Between(String value1, String value2) {
            addCriterion("goods_picture4 between", value1, value2, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture4NotBetween(String value1, String value2) {
            addCriterion("goods_picture4 not between", value1, value2, "goodsPicture4");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5IsNull() {
            addCriterion("goods_picture5 is null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5IsNotNull() {
            addCriterion("goods_picture5 is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5EqualTo(String value) {
            addCriterion("goods_picture5 =", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5NotEqualTo(String value) {
            addCriterion("goods_picture5 <>", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5GreaterThan(String value) {
            addCriterion("goods_picture5 >", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5GreaterThanOrEqualTo(String value) {
            addCriterion("goods_picture5 >=", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5LessThan(String value) {
            addCriterion("goods_picture5 <", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5LessThanOrEqualTo(String value) {
            addCriterion("goods_picture5 <=", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5Like(String value) {
            addCriterion("goods_picture5 like", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5NotLike(String value) {
            addCriterion("goods_picture5 not like", value, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5In(List<String> values) {
            addCriterion("goods_picture5 in", values, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5NotIn(List<String> values) {
            addCriterion("goods_picture5 not in", values, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5Between(String value1, String value2) {
            addCriterion("goods_picture5 between", value1, value2, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsPicture5NotBetween(String value1, String value2) {
            addCriterion("goods_picture5 not between", value1, value2, "goodsPicture5");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionIsNull() {
            addCriterion("goods_description is null");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionIsNotNull() {
            addCriterion("goods_description is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionEqualTo(String value) {
            addCriterion("goods_description =", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionNotEqualTo(String value) {
            addCriterion("goods_description <>", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionGreaterThan(String value) {
            addCriterion("goods_description >", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("goods_description >=", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionLessThan(String value) {
            addCriterion("goods_description <", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionLessThanOrEqualTo(String value) {
            addCriterion("goods_description <=", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionLike(String value) {
            addCriterion("goods_description like", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionNotLike(String value) {
            addCriterion("goods_description not like", value, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionIn(List<String> values) {
            addCriterion("goods_description in", values, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionNotIn(List<String> values) {
            addCriterion("goods_description not in", values, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionBetween(String value1, String value2) {
            addCriterion("goods_description between", value1, value2, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andGoodsDescriptionNotBetween(String value1, String value2) {
            addCriterion("goods_description not between", value1, value2, "goodsDescription");
            return (Criteria) this;
        }

        public Criteria andCountIsNull() {
            addCriterion("count is null");
            return (Criteria) this;
        }

        public Criteria andCountIsNotNull() {
            addCriterion("count is not null");
            return (Criteria) this;
        }

        public Criteria andCountEqualTo(Integer value) {
            addCriterion("count =", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotEqualTo(Integer value) {
            addCriterion("count <>", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThan(Integer value) {
            addCriterion("count >", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("count >=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThan(Integer value) {
            addCriterion("count <", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThanOrEqualTo(Integer value) {
            addCriterion("count <=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountIn(List<Integer> values) {
            addCriterion("count in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotIn(List<Integer> values) {
            addCriterion("count not in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountBetween(Integer value1, Integer value2) {
            addCriterion("count between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotBetween(Integer value1, Integer value2) {
            addCriterion("count not between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andOldPriceIsNull() {
            addCriterion("old_price is null");
            return (Criteria) this;
        }

        public Criteria andOldPriceIsNotNull() {
            addCriterion("old_price is not null");
            return (Criteria) this;
        }

        public Criteria andOldPriceEqualTo(BigDecimal value) {
            addCriterion("old_price =", value, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceNotEqualTo(BigDecimal value) {
            addCriterion("old_price <>", value, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceGreaterThan(BigDecimal value) {
            addCriterion("old_price >", value, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("old_price >=", value, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceLessThan(BigDecimal value) {
            addCriterion("old_price <", value, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("old_price <=", value, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceIn(List<BigDecimal> values) {
            addCriterion("old_price in", values, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceNotIn(List<BigDecimal> values) {
            addCriterion("old_price not in", values, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("old_price between", value1, value2, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andOldPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("old_price not between", value1, value2, "oldPrice");
            return (Criteria) this;
        }

        public Criteria andKindIsNull() {
            addCriterion("kind is null");
            return (Criteria) this;
        }

        public Criteria andKindIsNotNull() {
            addCriterion("kind is not null");
            return (Criteria) this;
        }

        public Criteria andKindEqualTo(String value) {
            addCriterion("kind =", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotEqualTo(String value) {
            addCriterion("kind <>", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindGreaterThan(String value) {
            addCriterion("kind >", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindGreaterThanOrEqualTo(String value) {
            addCriterion("kind >=", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLessThan(String value) {
            addCriterion("kind <", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLessThanOrEqualTo(String value) {
            addCriterion("kind <=", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLike(String value) {
            addCriterion("kind like", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotLike(String value) {
            addCriterion("kind not like", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindIn(List<String> values) {
            addCriterion("kind in", values, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotIn(List<String> values) {
            addCriterion("kind not in", values, "kind");
            return (Criteria) this;
        }

        public Criteria andKindBetween(String value1, String value2) {
            addCriterion("kind between", value1, value2, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotBetween(String value1, String value2) {
            addCriterion("kind not between", value1, value2, "kind");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountIsNull() {
            addCriterion("evaluation_count is null");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountIsNotNull() {
            addCriterion("evaluation_count is not null");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountEqualTo(Integer value) {
            addCriterion("evaluation_count =", value, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountNotEqualTo(Integer value) {
            addCriterion("evaluation_count <>", value, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountGreaterThan(Integer value) {
            addCriterion("evaluation_count >", value, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("evaluation_count >=", value, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountLessThan(Integer value) {
            addCriterion("evaluation_count <", value, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountLessThanOrEqualTo(Integer value) {
            addCriterion("evaluation_count <=", value, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountIn(List<Integer> values) {
            addCriterion("evaluation_count in", values, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountNotIn(List<Integer> values) {
            addCriterion("evaluation_count not in", values, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountBetween(Integer value1, Integer value2) {
            addCriterion("evaluation_count between", value1, value2, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andEvaluationCountNotBetween(Integer value1, Integer value2) {
            addCriterion("evaluation_count not between", value1, value2, "evaluationCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountIsNull() {
            addCriterion("collection_count is null");
            return (Criteria) this;
        }

        public Criteria andCollectionCountIsNotNull() {
            addCriterion("collection_count is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionCountEqualTo(Integer value) {
            addCriterion("collection_count =", value, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountNotEqualTo(Integer value) {
            addCriterion("collection_count <>", value, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountGreaterThan(Integer value) {
            addCriterion("collection_count >", value, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("collection_count >=", value, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountLessThan(Integer value) {
            addCriterion("collection_count <", value, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountLessThanOrEqualTo(Integer value) {
            addCriterion("collection_count <=", value, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountIn(List<Integer> values) {
            addCriterion("collection_count in", values, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountNotIn(List<Integer> values) {
            addCriterion("collection_count not in", values, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountBetween(Integer value1, Integer value2) {
            addCriterion("collection_count between", value1, value2, "collectionCount");
            return (Criteria) this;
        }

        public Criteria andCollectionCountNotBetween(Integer value1, Integer value2) {
            addCriterion("collection_count not between", value1, value2, "collectionCount");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}